package com.michael.provider.convertor;

import com.michael.facade.model.res.home.HomeIndexRes;
import com.michael.service.bizRes.HomeIndexBizRes;
import org.springframework.stereotype.Component;

@Component
public class HomeConvertor {
    public static HomeIndexRes index(HomeIndexBizRes bizRes){
        HomeIndexRes res =new HomeIndexRes();
        if (bizRes==null) {
            return res;
        }
        res.setMessage(bizRes.getMessage());
        return res;
    }
}
